When the icon-release signal is emitted on a GtkSearchEntry, the
contents is now cleared only if it's for the secondary icon. The primary
icon can be used for another purpose.
https://bugzilla.gnome.org/show_bug.cgi?id=704164
}
static void
-search_entry_clear_cb (GtkEntry *entry,
- gpointer user_data)
+search_entry_clear_cb (GtkEntry *entry,
+ GtkEntryIconPosition icon_pos,
+ gpointer user_data)
{
- gtk_entry_set_text (entry, "");
+ if (icon_pos == GTK_ENTRY_ICON_SECONDARY)
+ gtk_entry_set_text (entry, "");
}
static gboolean